package com.hzj.dao;


import java.util.List;

import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import com.hzj.pojo.Product;

/**
 * @Author: hzj
 * @Date: create in 2021/7/13 17:36
 * @Description:ElasticsearchRepository<Product,Long>
 */
public interface ProductDao extends ElasticsearchRepository<Product, Long> {
    List<Product> findByPriceBetween(double price1,double price2);
    List<Product> findByPrice(double price);
    List<Product> findByPriceAfter(double price);
    List<Product> findByTitleLike(String title);
}
